
###############################################################################
#
#  EGSnrc egs++ makefile to build fluence scoring object
#  Copyright (C) 2022 National Research Council Canada
#
#  This file is part of EGSnrc.
#
#  EGSnrc is free software: you can redistribute it and/or modify it under
#  the terms of the GNU Affero General Public License as published by the
#  Free Software Foundation, either version 3 of the License, or (at your
#  option) any later version.
#
#  EGSnrc is distributed in the hope that it will be useful, but WITHOUT ANY
#  WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
#  FOR A PARTICULAR PURPOSE.  See the GNU Affero General Public License for
#  more details.
#
#  You should have received a copy of the GNU Affero General Public License
#  along with EGSnrc. If not, see <http://www.gnu.org/licenses/>.
#
###############################################################################
#
#  Author:          Ernesto Mainegra-Hing, 2022
#
#  Contributors:
#
###############################################################################

include $(EGS_CONFIG)
include $(SPEC_DIR)egspp.spec
include $(SPEC_DIR)egspp_$(my_machine).conf

# For extra debugging messages invoke: make MYDEFS=-DDEBUG
DEFS = $(DEF1) -DBUILD_FLUENCE_SCORING_DLL $(MYDEFS)

library = egs_fluence_scoring
lib_files = egs_fluence_scoring
my_deps = $(common_ausgab_deps)
extra_dep = $(addprefix $(DSOLIBS), $(my_deps))

include $(SPEC_DIR)egspp_libs.spec

$(make_depend)

test:
	@echo "common_h2: $(common_h2)"
	@echo "extra: $(extra)"
	@echo "common_ausgab_deps: $(common_ausgab_deps)"
	@echo $(ABS_DSO)*$(library)*
clean:
	$(REMOVE) $(ABS_DSO)*$(library)*
	$(REMOVE) *.o
